package app.poller.entities;

import java.util.ArrayList;

import app.poller.config.Configuration;

public class Poll {
	
	private int pollId;
	private String mQuestion;
	private long pollCreatedTime;
	private long pollDuration;
	private ArrayList<Contact> contactList;
	private ArrayList<Option> optionList;
	
	
	public Poll() {
		
	}
	
	public Poll(String question, ArrayList<Option> options, ArrayList<Contact> contact, long pollCreateTimeInMillis) {
		this.mQuestion = question;
		this.optionList = options;
		this.contactList = contact;
		this.pollDuration = Configuration.POLL_DURATION;
		this.pollCreatedTime = pollCreateTimeInMillis;
	}
	
	public int getPollId() {
		return pollId;
	}
	
	public void setPollId(int pollId) {
		this.pollId = pollId;
	}
	
	public String getQuestion() {
		return mQuestion;
	}
	
	public void setQuestion(String question) {
		mQuestion = question;
	}
	
	public void setPollCreatedTime(long pollCreatedTime) {
		this.pollCreatedTime = pollCreatedTime;
	}
	
	public long getPollCreatedTime() {
		return pollCreatedTime;
	}
	
	public void setOptionList(ArrayList<Option> optionList) {
		this.optionList = optionList;
	}
	
	public ArrayList<Option> getOptionList() {
		return optionList;
	}
	
	public void setContactList(ArrayList<Contact> contactList) {
		this.contactList = contactList;
	}
	
	public ArrayList<Contact> getContactList() {
		return contactList;
	}
	
	public long getPollDuration() {
		return pollDuration;
	}
}
